
public abstract class Controlo {
	
	private static long tmax;
	private static int n;
	private static int m;
	private static int[][] C;
	private static long populacao_init;
	private static long populacao_max;
	private static float micro, ro, delta;
	private static float tmin;
	
	protected static void init (long ntmax, int nn, int nm, int[][] nC, 
								long npopulacao_init, long npopulacao_max, 
								float nmicro, float nro, float ndelta)
	{
		tmax=ntmax;
		n=nn;
		m=nm;
		C=nC;
		populacao_init=npopulacao_init;
		populacao_max=npopulacao_max;
		micro=nmicro;
		ro=nro;
		delta=ndelta;
		
		calcular_tmin();
	}
	
	protected static void calcular_tmin()
	{
		int i;
		int f;
		tmin=0;
		
		for(i=0; i<n; i++)
		{
			for(f=0;f<m;f++)
			{
				tmin+=C[i][f];
			}
		}
		
		tmin=tmin/n;
	}
	
	protected static long ler_tmax() {return tmax;}
	protected static int ler_n() {return n;}
	protected static int ler_m() {return m;}
	protected static int[][] ler_C() {return C;}
	protected static long ler_populcao_init() {return populacao_init;}
	protected static long ler_populacao_max() {return populacao_max;}
	protected static float ler_micro() {return micro;}
	protected static float ler_ro() {return ro;}
	protected static float ler_delta() {return delta;}
	protected static float ler_tmin() {return tmin;}

}
